import { Toast, Button, Form, Search, Col, Row, Cell, ShareSheet, Uploader, Dialog, Field, Picker, Icon, Badge, Tabs, Tab, ActionSheet, List, PullRefresh } from 'vant'
import { Divider, Tabbar, TabbarItem, Tag, Image } from 'vant';
import { Popup, NoticeBar } from 'vant';
import { Card } from 'vant';
import http from "@/utils/myaxios.js";
import Vue from 'vue'
import App from './App'
import router from './router'


Vue.prototype.$http = http
Vue.config.productionTip = false

import '@/styles/reset.less'
import '@/styles/common.less'
/* 引入路由模块 */


/*  注册vant框架中的toast清提示功能 */
//在vue实例中挂载vant框架中的$toast功能
Vue.use(Card)
  .use(Image)
  .use(Divider)
  .use(Popup)
  .use(NoticeBar)
  .use(Button)
  .use(Tag)
  .use(Tabbar)
  .use(TabbarItem)
  .use(Toast)
  .use(Form)
  .use(Toast)
  .use(Uploader)
  .use(Dialog)
  .use(Field)
  .use(Picker)
  .use(Icon)
  .use(Badge)
  .use(Tabs)
  .use(Tab)
  .use(ActionSheet)
  .use(List)
  .use(PullRefresh)
  .use(ShareSheet)
  .use(Cell)
  .use(Col)
  .use(Row)
  .use(Search)
/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  components: { App },
  render: h => h(App),
  template: '<App/>'
})
